package org.example.im.common.codec;

import io.netty.buffer.ByteBuf;
import org.example.im.bean.protocol.Packet;

/**
 * @author dingrui
 * @since 2022/2/10
 * @description
 */
public interface Codec {

    void encode(Packet packet, ByteBuf byteBuf);

    Packet decode(ByteBuf byteBuf);
}
